<?php
class Application_Model_Bussiness extends Application_Model_DbTable_Bussiness
{
    
      /**
    * Get list product
    * with visible = 1 and is_deleted = 0 
    * @author Tien Nguyen
    * @return Zend_Db_Select   
    */
   public function getList(){
        $select = $this->select();
        $select->from('bussiness');
        $select->where('bussiness.visible = ?', 1);
        $select->where('bussiness.is_delete = ?', 0);
        return $select;
   }
       
     public function getListHotBussiness(){
        $select = $this->getList();
        $select->setIntegrityCheck(FALSE);
        $select->order(array('create_date DESC'));
        return $select;
    }
}